获取smartedu token的方法
下载:https://github.com/alterem/knowledge-grab/releases/download/v1.0.1/KnowledgeGrab_1.0.0_x64_en-US.msi
- 打开浏览器,访问国家中小学智慧教育平台并登录账号。
- 按下 F12 或 Ctrl+Shift+I,或右键——检查(审查元素)打开开发者工具,选择控制台(Console)。
- 在控制台粘贴以下代码后回车(Enter):
(function() {
const authKey = Object.keys(localStorage).find(key => key.startsWith("ND_UC_AUTH"));
if (!authKey) {
console.error("未找到 Access Token,请确保已登录!");
return;
}
const tokenData = JSON.parse(localStorage.getItem(authKey));
const accessToken = JSON.parse(tokenData.value).access_token;
console.log("%cAccess Token:", "color: green; font-weight: bold", accessToken);
})();

把token填入到KnowledgeGrab中
